-- GENERATED SPELL FOR [Burning Depths Necrolyte] --


function spell0_27356(pUnit, Event) --@Destructive Strike,n/a--
pUnit:FullCastSpellOnTarget(51430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27356', 569, 1)
end

function spell1_27356(pUnit, Event) --@Obsidian Essence,Self--
pUnit:FullCastSpellOnTarget(48616,pUnit)
pUnit:RegisterEvent('Sorts_27356', 22000, 1)
end

function Sorts_27356(pUnit, Event)
local choix_sorts_27356 = math.random(0, 1)
if choix_sorts_27356 == 0 then
pUnit:RegisterEvent('spell0_27356', 1, 1)
end
if choix_sorts_27356 == 1 then
pUnit:RegisterEvent('spell1_27356', 1, 1)
end
end

function mob27356_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27356', math.random(1500, 3000), 1)
end

function mob27356_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27356_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27356_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27356, 1, 'mob27356_Action')
RegisterUnitEvent(27356, 2, 'mob27356_Leave')
RegisterUnitEvent(27356, 3, 'mob27356_Kill')
RegisterUnitEvent(27356, 4, 'mob27356_Die')
